//package com.zerone.pay.trade.web.controller.weixin;
//
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Component;
//import org.sword.wechat4j.request.WechatRequest;
//
//import com.aerair.mumwith.common.annotation.Wechater;
//import com.aerair.mumwith.domain.user.repository.UserRepository;
//
///**
// * Created by tyongfu@yiji.com on 2015/12/21.
// */
//@Component("unsubcribeProcessor")
//@Wechater(key = "unsubcritbe_processor",desc = "订阅处理器")
//public class UnsubcribeProcessor  extends WechatProcessor {
//
//    @Autowired
//    private UserRepository userRepository;
//
//    @Override public String process(WechatRequest request) {
//      /* User user =  userRepository.findByOpenId(request.getFromUserName());
//        if(user!=null){
//            user.setSubscribe(0);
//            userRepository.save(user);
//        }*/
//        return "退订成功";
//    }
//}
